import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
//引入vue-quill-editor富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import moment from 'moment'
//引入vue-quill-editor富文本编辑器css样式
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.filter('time', function (value, formatString) {
  formatString = formatString || 'YYYY-MM-DD HH:mm:ss';
  return moment(value * 1000).format(formatString);
})
//注册
Vue.use(VueQuillEditor)

Vue.config.productionTip = false
// 过滤器
// Vue.filter('rights',function(v){

// })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

